<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

class Activity_detail extends Model
{
    protected $table='activity_detail';
    protected $fillable=[
        'item_name',
        'store_name',
        'activity_detail_state',
        'activity_detail_sort',
    ];

    //关联activity表中的activity_id
    public function activity()
    {
        return $this->hasOne('App\Model\Activity','activity_id');
    }
}
